﻿@model Object

@{
    var values = Enum.GetValues(Model.GetType());
    var items = new List<KeyValuePair<int, string>>();
    foreach (var item in values)
    {
        var key = (int)item;
        var label = item.ToString();
        items.Add(new KeyValuePair<int, string>(key, label));
    }
    var list = new SelectList(items, "Key", "Value", Model);
}

@Html.DropDownList(string.Empty, list, new { @class = "form-control", autocomplete = "off" })
